import 'package:flutter/material.dart';
Container labelTitleWidget(text) {
  return Container(
    height: 40,
    margin: const EdgeInsets.only(left: 10),
    child: Row(children: [
      Container(
        color: Colors.red,
        width: 2,
        height: 10,
        margin: const EdgeInsets.only(right: 5),
      ),
      //文字加粗
      Text(text,style: const TextStyle(color: Colors.black54,fontWeight: FontWeight.bold),),
    ]),
  );
}

TextWidget(String s,
    {required double fontSize, required MaterialColor color}) {
  return Text(
    s,
    style: TextStyle(
      fontSize: fontSize,
      color: color,
      overflow: TextOverflow.ellipsis,
    ),
  );
}

